import java.util.Comparator;


public class ComparatorGrowth implements Comparator<RainmanPlanet> {

	public int compare(RainmanPlanet p1, RainmanPlanet p2){
		
		if(p1.GrowthRate() < p2.GrowthRate()){
			return -1;
		}
		if(p1.GrowthRate() > p2.GrowthRate()){
			return 1;
		}
		return 0;
	} 
	
}
